package com.wxtt.android.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.fast.dev.frame.bean.I_Model;
import com.fast.dev.frame.database.annotate.ID;

/**
 * 说明：用户实体
 * <p/>
 * 作者：fanly
 * <p/>
 * 时间：2015/12/26 16:29
 * <p/>
 * 版本：verson 1.0
 */
public class UserBean extends Model {

    //用户UID
    private String id;
    //用户昵称
    private String screen_name;
    //友好显示名称
    private String name;
    //用户头像地址
    private String profile_image_url;
    //用户微博地址
    private String profile_url;
    //用户性别
    private String gender;//性别，m:男，f:女，n:未知
    //用户所在地
    private String location;
    //用户描述
    private String description;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScreen_name() {
        return screen_name;
    }

    public void setScreen_name(String screen_name) {
        this.screen_name = screen_name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProfile_image_url() {
        return profile_image_url;
    }

    public void setProfile_image_url(String profile_image_url) {
        this.profile_image_url = profile_image_url;
    }

    public String getProfile_url() {
        return profile_url;
    }

    public void setProfile_url(String profile_url) {
        this.profile_url = profile_url;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(screen_name);
        dest.writeString(name);
        dest.writeString(profile_image_url);
        dest.writeString(profile_url);
        dest.writeString(gender);
        dest.writeString(location);
        dest.writeString(description);
    }

    public static final Parcelable.Creator<UserBean> CREATOR =
            new Creator<UserBean>() {

                @Override
                public UserBean createFromParcel(Parcel source) {

                    UserBean bean = new UserBean();
                    bean.setId(source.readString());
                    bean.setScreen_name(source.readString());
                    bean.setName(source.readString());
                    bean.setProfile_image_url(source.readString());
                    bean.setProfile_url(source.readString());
                    bean.setGender(source.readString());
                    bean.setLocation(source.readString());
                    bean.setDescription(source.readString());
                    return bean;
                }

                @Override
                public UserBean[] newArray(int size) {
                    return new UserBean[size];
                }
            };
}
